<include file="Public:top"/>
<body>
<include file="Public:head"/>
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_725800_ybemhderilq.css" />
<if condition="C('yh_bingtaobao') eq 1 and !$user['tb_open_uid']">
<style>
.footer_kf { height:60px; width:100%; position:fixed; background-color: rgba(0,0,0,0.8); bottom:0; left:0; z-index:8888;}
.fd_box { height:120px; position:fixed; width:100%; bottom:0; left:0; z-index:666;}
.fd_box01 { width:100%; height:120px; position:fixed; bottom:10px;}
.fd_tu{padding-bottom: 20px;}
.fd_box02 { margin:0 auto; width:694px; height:87px; position:relative; padding-bottom: 30px; z-index:888;}
</style>
</if>
		<!--wrap-->
		<div class="wrap">
			<div class="container cl">
<include file="nav"/>
				<div class="mianbar">
			<if condition="!$user['oid'] and C('yh_bingtaobao') eq 0">
					<div class="Huialert Huialert-danger">
						<a class="btn btn-primary radius size-MINI" href="{:U('user/suborder')}">认领</a> 您的淘宝订单，
						下单享现金奖励。(注：每个淘宝账号所产生的订单只可以绑定一个{:C('yh_site_name')}账号 且不可修改)</div>
			</if>
			
			<!--<if condition="$user['webmaster']">
					<div class="Huialert Huialert-error">
						<a href="{:U('zhan/ucenter')}"> 进入老的代理用户中心</a>
					</div>
			</if>-->
			
					<div class="user-center">
						<ul>
							<li>
								<h3>我的余额</h3>
								<h4><span class="c-main">{:$user['money']?$user['money']:0}</span>元</h4>
								<a href="{:U('user/tixian')}" class="btn btn-main radius size-S">我要提现</a>
								<p>下单、晒单</p>
									<p>积分兑换,都可用获得现金奖励哦</p>
							</li>
							<li>
								<h3>可用积分</h3>
								<h4><span class="c-success">{:$user['score']?$user['score']:0}</span>分</h4>
								<a href="{:U('user/jifen')}" class="btn btn-success radius size-S">积分兑换</a>
								<p>100积分={:(C('yh_fanxian')/100)*100}元红包</p>
								<p>积分兑换的红包可提现到支付宝</p>
							</li>
							<li>
								<h3>待返积分</h3>
								<h4><span class="c-primary">{$integral}</span>分</h4>
								
								<if condition="$user['oid']">
								<a class="btn btn-primary radius size-S">已绑定订单</a>		
								<else/>
								<a href="{:U('user/suborder')}" class="btn btn-warning radius size-S">提交淘宝订单</a>	
								</if>
								<p>绑定淘宝订单，系统即可自动识别</p>
								<p>通过本平台下的其它所有订单。</p>
							</li>
						</ul>
					</div>
					
					
					
					<div class="laba cl">
						<p class="c-main">公告通知：<i class="iconfont icon-laba"></i></p>
						<div class="bd">
							<ul>
<li><a>确认收货{:C('yh_ComputingTime')}天后结算到账,余额满{:C('yh_Quota')}元可提现。</a></li>
<volist name="article" id="art">
<li><a target="_blank" href="<if condition="C('URL_MODEL') eq 2">/article/view_{$art.id}<else/>{:U('/article/read',array('id'=>$art['id']))}</if>">{$art.title}</a></li>
</volist>	
							</ul>
						</div>
					</div>
					
	 <if condition="$isagent">				
	<div class="subnav" style="margin-top: 10px;">
						<div class="share-wrap">
							<div class="">
								<h4>代理中心</h4>
							</div>

<div class="usercenter-container" style="background: none;">
<div class="usercenter-header">
            <div class="avaiable intro">
              <a href="{:U('user/myorder')}"> <p class="score iconfont tqk-suoyoujiesuandan" style="font-size: 42px;"></p>
                 <div class="category">我的订单</div></a> 
            </div>
              <div class="avaiable intro">
             <a href="{:U('user/teamorder')}"> <p class="score iconfont tqk-list_hetongjiesuan" style="font-size: 42px;"></p>
                 <div class="category">团队订单</div></a> 
            </div>
            <if condition="$user['webmaster']">
             <div class="avaiable intro">
              <a href="{:U('user/channelorder')}"> <p class="score iconfont tqk-qudaodingdan" style="font-size: 42px;"></p>
                 <div class="category">渠道订单</div></a> 
            </div>
            </if>
                <div class="avaiable intro">
             <a href="{:U('user/myteam')}"> <p class="score iconfont tqk-tuandui" style="font-size: 42px;"></p>
                 <div class="category">我的团队</div></a> 
            </div>
             <div class="avaiable intro" style="margin-right: 0;">
              <a href="{:U('user/teamprofit')}"> <p class="score iconfont tqk-shouyi" style="font-size: 42px;"></p>
                 <div class="category">我的收益</div></a> 
            </div>
         
        </div>							
	</div>		
	
	<div class="am-line" style="clear: both;"></div>
							
							<div class="share-flow flexbox">
								<div class="share-flow-step">
									<span class="iconfont tqk-fenxiao"></span>
									<p>1.分享专属链接</p>
								</div>
								<div class="share-flow-arr"><i class="iconfont icon-right2"></i></div>
								<div href="" class="share-flow-step">
									<span class="iconfont tqk-faxian"></span>
									<p>2.买家访问平台</p>
								</div>
								<div class="share-flow-arr"><i class="iconfont icon-right2"></i></div>
								<div href="" class="share-flow-step">
									<span class="iconfont tqk-gouwuchetianjia"></span>
									<p>3.买家领取优惠券并下单</p>
								</div>
								<div class="share-flow-arr"><i class="iconfont icon-right2"></i></div>
								<div href="" class="share-flow-step">
									<span class="iconfont icon-integral"></span>
									<p>4.买家确认收货你获得商家奖励</p>
								</div>
							</div>
							<div class="share-way form form-horizontal">
								<div class="row cl">
									<div class="share-way-tit mt-5">
										<label class="form-label">推广链接</label>
									</div>
									<div class="formControls col-xs-7 col-sm-7">
										<input type="text" readonly="readonly" class="input-text" value="{:C('yh_site_url')}/?t={$visitor.id}" id="foo" />
										
									</div>
									<div class="col-xs-2 col-sm-2">
										<button class="btn btn-primary size-L radius copy_key" data-clipboard-action="copy" data-clipboard-target="#foo">一键复制</button>
									</div>
								</div>
								
							<if condition="$openinvocode">
								<div class="row cl">
									<div class="share-way-tit mt-5">
										<label class="form-label">邀请码</label>
									</div>
									<div class="formControls col-xs-7 col-sm-7">
										<input type="text" readonly="readonly" class="input-text" value="{$visitor.invocode}" id="foo2" />
										
									</div>
									<div class="col-xs-2 col-sm-2">
										<button class="btn btn-primary size-L radius copy_key" data-clipboard-action="copy" data-clipboard-target="#foo2">一键复制</button>
									</div>
								</div>
							</if>
							
							</div>
						</div>
					</div>	
					
			<else/>		
					
					
					<div class="subnav">
						<div class="subtop">
							<p class="c-main">最近订单</p>
						</div>
						<table class="table table-border table-bg">
							<thead>
								<tr>
									<th>付款时间</th>
									<th>订单编号</th>
									<th>付款金额</th>
									<th>预计收益</th>
									<th>状态</th>
									<th>结算时间</th>
								</tr>
							</thead>
							<tbody>
								<volist name="list" id="vo">
								<tr>
									<td>{$vo.add_time|frienddate}</td>
									<td>{$vo.orderid}</td> 
									<td><b class="c-main">
							 <if condition="$vo['price']">
								{$vo.price}
								<else/>
							--
								</if>
									</b></td>
									<td><if condition="$vo['integral']">
								{$vo.integral}
								<else/>
							--
								</if></td>
								<td>
									{$vo.status}
								</td>
								<td><if condition="$vo['up_time']">
								{$vo.up_time|frienddate}
								<else/>
								--
								</if></td>
								</tr>
								</volist>
							</tbody>
						</table>
						
						</div>
						
					</if>	
						
						
						
				</div>
			</div>
		</div>
<if condition="C('yh_bingtaobao') eq 1 and $user['webmaster'] eq 0">
<div class="keifu">
	<div class="footer_kf keifu_box">
		<div class="fd_box">
			<div class="fd_box01">
				<div class="fd_box02">
				<div class="fd_tu"><a href="{:U('bindtb/index')}" ><img src="__STATIC__/tqkpc/images/auth.png?v=4" style="display:block;"></a></div>
				</div>
			</div>
		</div>
	</div>
</div>
</if>	
		
		<include file="Public:foot"/>
		<script>
			jQuery(".laba").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:true});
		var clipboard = new Clipboard('.copy_key');
	    clipboard.on('success', function(e) {
	        layer.msg('成功复制推广链接！', {time:2000});
	    });
		</script>
	</body>
</html>
